package com.itheima.manager;



import com.itheima.util.R;
import com.itheima.domain.PmsSkuStock;
import com.itheima.service.db.PmsSkuStockService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
public class PmsSkuStockManager {

    @DubboReference
    PmsSkuStockService pmsSkuStockService;
    public List<PmsSkuStock> getByIdSku(@RequestParam Integer pid,@RequestParam(required = false) String keyword) {
        return pmsSkuStockService.getByIdSku(pid,keyword);
    }

    public void updatePid(Integer pid, PmsSkuStock[] skuStockList) {
        pmsSkuStockService.updatePid(pid,skuStockList);
    }
}
